<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	request.setCharacterEncoding("utf-8");
	String cp = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>게 시 판</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<link rel="stylesheet" href="<%=cp%>/community/css/event.css" type="text/css"/>
<link rel="stylesheet" href="<%=cp%>/info/css/list.css" type="text/css"/>
<script type="text/javascript" src="<%=cp%>/board/js/util.js"></script>
<script type="text/javascript">
	function searchData(){
		
		var f = document.searchForm;
		f.action = "<%=cp%>/community/e_list.action";
		f.submit();
		
	}
</script>
</head>

<body>

	<div id="container">
		<div id="subNavigation">
			<h2><img src="<%=cp%>/community/image/h2_community.gif" alt="커뮤니티" /></h2>
			<ul class="leftMenu">
                <li><a href='<%=cp%>/community/hugi.action'><img src='<%=cp%>/community/image/subnavi_community1_on.gif' class='imgover' alt='여행후기' /></a></li>
                <li><a href='<%=cp%>/community/gallary.action'><img src='<%=cp%>/community/image/photo.gif' class='imgover' alt='포토갤러리' /></a></li>
                <li><a href='<%=cp%>/community/event.action'><img src='<%=cp%>/community/image/subnavi_community2_on.gif' class='imgover' alt='진행중인 이벤트' /></a></li>
                <li><a href='<%=cp%>/community/e_list.action'><img src='<%=cp%>/community/image/subnavi_community3_on.gif' alt='당첨자발표' /></a></li>
			</ul>
			<ul class="boardLink">
				<li><a href="<%=cp%>/info/s_created.action"><img src="<%=cp%>/community/image/main_qna.gif" alt="질문과 답변" /></a></li>
				<li><a href="<%=cp%>/info/qna.action"><img src="<%=cp%>/community/image/main_faq.gif" alt="자주하는 질문" /></a></li>
			</ul>
		</div>
		
		<img src="<%=cp%>/community/image/main.png" alt="커뮤니티" />


		<!-- Contents -->
        <div class="travelguide_sky"></div>
		<div id="contents">
         <br/><br/>
			<div class="community_comment">
				<h4><span class="floatR"><a href="<%=cp%>/community/hugi.action"><img src="<%=cp%>/community/image/btn_more_view8.gif" alt="더보기"/></a></span><img src="<%=cp%>/community/image/main1.gif" alt="이벤트 당첨자발표"/></h4>
				
				<ul>
					<c:forEach var="dto" items="${hugi}">	
					  <li class="first">
					  <a href="<%=cp%>/community/article.action?boardNum=${dto.boardNum}"><span class="textCut">${dto.subject}</span></a>
					  </li> 
					</c:forEach>
				</ul>
				
			<br/><br/>	
			<a href="<%=cp%>/community/event.action"><img src="<%=cp%>/community/image/event111.bmp" alt="커뮤니티" /></a>
			
			</div>
			
			<div class="community_event_result">
				<h4><span class="floatR"><a href="<%=cp%>/community/e_list.action"><img src="<%=cp%>/community/image/btn_more_view8.gif" alt="더보기"/></a></span><img src="<%=cp%>/community/image/main2.gif" alt="이벤트 당첨자발표"/></h4>
				<ul>
					<c:forEach var="dto" items="${event}">	
					  <li class="first">
					  <a href="<%=cp%>/community/e_article.action?num=${dto.num}"><span class="textCut">${dto.subject}</span></a>
					  </li> 
					</c:forEach>
				</ul>
			<br/><br/>	
			<a href="<%=cp%>/community/event.action"><img src="<%=cp%>/community/image/event222.bmp" alt="커뮤니티" /></a>	

			</div>
 
			<div class="clear"></div>
			
			<br/>
			<h4 class="h4Type13"><span class="floatR"><a href="<%=cp%>/community/gallary.action"><img src="<%=cp%>/community/image/btn_more_view8.gif" alt="더보기"/></a></span><img src="<%=cp%>/community/image/gallary.gif" alt="여행 갤러리"/></h4>
			<div class="photo_gallery">
				<ul>
					<c:forEach var="dto" items="${gallary}">	
                        <li class="first">
                            <img src="${imagePath}${dto.saveFileName}" width="160" height="120" alt=""/>&nbsp;
						 </li>
					</c:forEach>
				</ul>
			</div>
			
   	
        </div>
		<!-- Contents //-->

		
	</div>


</body>

</html>